<?php

/**
 *  ForumFacade Class
 *
 *  
 *  @author     Vinod Kumar
 *  @package    Project Name
 *
 */

class ForumFacade extends MainFacade {
	
	private $forumService;
	
	/**
     *  __construct
     *
     *  Instantiate ForumService Object
     */
	public function __construct() {
	    
		$this->forumService = new ForumService();
	}/* END __construct */
	
	/**
     *  fetchAllForum
     *
     *  select all forums
     * 
     * @return  array   retArray    all forums
     * 
     */
    public function fetchAllForum() {
        
        //call a query from Forum Service class object to fetch all forums & return it    
        $retArray = array("result"=>false, "message"=>'');
        return $retArray;
    }/* END fetchAllForum */
    
    /**
     *  addForum
     *
     *  Add new forum
     * 
     * @param   array   post        forum related data
     * @return  array   retArray    bool result & message
     * 
     */
	public function addForum($post) {
		
	    $retArray = array("result"=>false, "message"=>'');
		return $retArray;		
	}/* END addForum */
	
	
    /**
     *  detailForum
     *
     *  Whole detail of a particular forum
     * 
     * @param   array   variable    forum id
     * @return  array   retArray    forum detail
     * 
     */
	public function detailForum($forumId) {
	    
	    $retArray = array("result"=>false, "message"=>'');
		
		return $retArray;
	} /* END detailForum */  
	
	
    /**
     *  delForum
     *
     *  Delete the froum
     * 
     * @param   int     variable    forum id
     * @return  array   retArray    bool result & message 
     */
	public function delForum($forumId) {

	   
	} /* END delForum */ 
    

    /**
     *  addComment
     *
     *  Add comment to the forum
     * 
     * @param   array   post        forum id and comment data
     * @return  array   retArray    bool result & message
     * 
     */
    public function addComment($post) {
        
    }/* END addComment */
    
    
    /**
     *  delComment
     *
     *  Delete the comment of a froum
     * 
     * @param   int     variable    comment id
     * @return  array   retArray    bool result & message 
     */
    public function delComment($commentId) {

       
    } /* END delComment */ 
  
}/*END ForumFacade*/
?>